import React from 'react'
import {BrowserRouter,Route} from 'react-router-dom'
import Heade from './header'
const index = (props) => {

  // 小技巧，使用实例化对象产生信息
  // new BrowserRouter
  return (
    <BrowserRouter>
    <Heade/>
      <Route path='/home' component={props=><div>我是首页</div>} />
      <Route path='/news' component={props=><div>我是新闻</div>} />
    </BrowserRouter>
  )
}

export default index
